package MCQReaderModel;

import javax.swing.tree.DefaultMutableTreeNode;

public abstract class GroupNode extends DefaultMutableTreeNode {

	/**
		 * 
		 */
	protected static final long serialVersionUID = 1L;
	protected int numGroup;
	protected int height;
	protected int width;

	public String toString() {
		return "Question " + numGroup + " <" + height + "," + width + ">";
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getNumGroup() {
		return this.numGroup;
	}

	public void setNumGroup(int numGroup) {
		this.numGroup = numGroup;
	}	
	
	public boolean isScaled(){
		return getHeight() > 0 && getWidth() > 0;
	}
}
